import request from '@/utils/request'

// 查询用户推荐收益列表
export function listUUserRefereeEarning(query) {
  return request({
    url: '/api/uUserRefereeEarning/list',
    method: 'get',
    params: query
  })
}

// 查询用户推荐收益详细
export function getUUserRefereeEarning(id) {
  return request({
    url: '/api/uUserRefereeEarning/' + id,
    method: 'get'
  })
}

// 新增用户推荐收益
export function addUUserRefereeEarning(data) {
  return request({
    url: '/api/uUserRefereeEarning',
    method: 'post',
    data: data
  })
}

// 修改用户推荐收益
export function updateUUserRefereeEarning(data) {
  return request({
    url: '/api/uUserRefereeEarning',
    method: 'put',
    data: data
  })
}

// 删除用户推荐收益
export function delUUserRefereeEarning(id) {
  return request({
    url: '/api/uUserRefereeEarning/' + id,
    method: 'delete'
  })
}
